package cn.edu.njtc.entity.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;


@Data
@TableName("tb_qrcodegenerator")
public class QRCodeGenerator  {
    private static final long serialVersionUID = 1L;

    private String qrCodeData;
    private String filePath;
    private int width;
    private int height;

    // 无参构造函数
    public QRCodeGenerator() {
    }

    // 有参构造函数
    public QRCodeGenerator(String qrCodeData, String filePath, int width, int height) {
        this.qrCodeData = qrCodeData;
        this.filePath = filePath;
        this.width = width;
        this.height = height;
    }

    // Getter 和 Setter 方法
    public String getQrCodeData() {
        return qrCodeData;
    }

    public void setQrCodeData(String qrCodeData) {
        this.qrCodeData = qrCodeData;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    @Override
    public String toString() {
        return "QRCodeGenerator{" +
                "qrCodeData='" + qrCodeData + '\'' +
                ", filePath='" + filePath + '\'' +
                ", width=" + width +
                ", height=" + height +
                '}';
    }
}